package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ConferencePapersMapper;
import com.ruoyi.system.domain.ConferencePapers;
import com.ruoyi.system.service.IConferencePapersService;
import com.ruoyi.common.core.text.Convert;

/**
 * 会议文件;Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-16
 */
@Service
public class ConferencePapersServiceImpl implements IConferencePapersService 
{
    @Autowired
    private ConferencePapersMapper conferencePapersMapper;

    /**
     * 查询会议文件;
     * 
     * @param papersId 会议文件;主键
     * @return 会议文件;
     */
    @Override
    public ConferencePapers selectConferencePapersByPapersId(Long papersId)
    {
        return conferencePapersMapper.selectConferencePapersByPapersId(papersId);
    }

    /**
     * 查询会议文件;列表
     * 
     * @param conferencePapers 会议文件;
     * @return 会议文件;
     */
    @Override
    public List<ConferencePapers> selectConferencePapersList(ConferencePapers conferencePapers)
    {
        return conferencePapersMapper.selectConferencePapersList(conferencePapers);
    }

    /**
     * 新增会议文件;
     * 
     * @param conferencePapers 会议文件;
     * @return 结果
     */
    @Override
    public int insertConferencePapers(ConferencePapers conferencePapers)
    {
        return conferencePapersMapper.insertConferencePapers(conferencePapers);
    }

    /**
     * 修改会议文件;
     * 
     * @param conferencePapers 会议文件;
     * @return 结果
     */
    @Override
    public int updateConferencePapers(ConferencePapers conferencePapers)
    {
        return conferencePapersMapper.updateConferencePapers(conferencePapers);
    }

    /**
     * 批量删除会议文件;
     * 
     * @param papersIds 需要删除的会议文件;主键
     * @return 结果
     */
    @Override
    public int deleteConferencePapersByPapersIds(String papersIds)
    {
        return conferencePapersMapper.deleteConferencePapersByPapersIds(Convert.toStrArray(papersIds));
    }

    /**
     * 删除会议文件;信息
     * 
     * @param papersId 会议文件;主键
     * @return 结果
     */
    @Override
    public int deleteConferencePapersByPapersId(Long papersId)
    {
        return conferencePapersMapper.deleteConferencePapersByPapersId(papersId);
    }
}
